﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="CurrencyEdit.aspx.cs" Inherits="CurrencyEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Label ID="lblDate" Text="Date" runat="server" /><br />
    <csc:DateTextBox ID="txtCurrDate" CssClass="textbox" ClientIDMode="Static" runat="server"></csc:DateTextBox>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtCurrDate" EnableClientScript="true"
        ValidationExpression='<%$ Resources:Global, DateRegex%>' runat="server" ErrorMessage="*"></asp:RegularExpressionValidator><br />
    <asp:Label ID="lblCurrType" Text="Type" runat="server" /><br />
    <asp:DropDownList ID="ddlCurrTypes" CssClass="textbox" runat="server" DataSourceID="CurrencyTypesDS" DataTextField="Name" DataValueField="CurrencyTypeID">
    </asp:DropDownList>
    <br />
    <asp:Label ID="lblCurrency" Text="Rate" runat="server" /><br />
    <asp:TextBox ID="txtCurrency" CssClass="textbox" runat="server" />
    <asp:CompareValidator ID="cmprValidatorDoubleType1" runat="server" ControlToValidate="txtCurrency" Type="Double" Display="Dynamic" Operator="DataTypeCheck"
        ErrorMessage="* Not a valid number."></asp:CompareValidator>

    <br />
    <asp:Button ID="btnSave" Text="Save" CssClass="button_pink" runat="server" OnClick="btnSave_Click" />

    <asp:ObjectDataSource ID="CurrencyTypesDS" runat="server" SelectMethod="GetAll" TypeName="DAL.DBManagers.CurrencyTypesManager"></asp:ObjectDataSource>
</asp:Content>

